package org.dtrd.modules.common.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.common.entity.po.DtrdEntRdWechatQrcode;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiao
 * @since 2022-06-01
 */
@Getter
@Setter
@ApiModel(value = "详情")
public class WechatQrcodeDetail {

    private Integer dataId;



    @ApiModelProperty("微信公众号openid")
    private String wxOaOpenId;

    @ApiModelProperty("生成微信公众号二维码时返回的url")
    private String wxOaQrcodeUrl;

    @ApiModelProperty("微信公众号标签，逗号拼接")
    private String wxOaTags;

    @ApiModelProperty("二维码类型")
    private Integer wxOaQrcodeType;

    public WechatQrcodeDetail parseFromPo(DtrdEntRdWechatQrcode po) {
        dataId = po.getDataId();
        wxOaOpenId = po.getWxOaOpenId();
        wxOaQrcodeUrl = po.getWxOaQrcodeUrl();
        wxOaTags = po.getWxOaTags();
        wxOaQrcodeType = po.getWxOaQrcodeType();
        return this;
    }
}
